package com.game.common;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * Created by Administrator on 2016/6/17.
 */
@Configurable
public class Configuration {
	@Bean(name = "blockingQueue")
	@Scope("prototype")
	public BlockingQueue<Runnable> getBlockingQueue() {
		return new LinkedBlockingQueue<Runnable>();
	}
}
